public class Cash extends Payment {
    private double cashTendered;

    public Cash(double amount, double cashTendered) {
        super(amount);
        this.cashTendered = cashTendered;
    }

    @Override
    public String getPaymentDetails() {
        return "Cash Payment: " + amount + ", Cash Tendered: " + cashTendered;
    }
}